<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>title</title>
		<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style type="text/css">
    body{background:#f9cc9e;}
    </style>
    
    <title>修改用户</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="${path }/static/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="${path }/static/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="${path }/static/css/animate.min.css" rel="stylesheet">
    <link href="${path }/static/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	</head>
	<body>
        <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="signupForm" novalidate="novalidate" action="${path }/DoUpdata" ">
                        <input type="hidden" name="id" value="${id }">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">id：</label>                              
                                <div class="col-sm-8">
                                    <input id="lastname" name="id" class="form-control"  value="${id }" readonly="true"  aria-required="true" aria-invalid="true">
                                </div>
                            </div>                       
                            <div class="form-group">
                                <label class="col-sm-3 control-label">收入/支出:</label>
                                <div class="col-sm-8">
                                    <input id="inout" name="inout" class="form-control" type="text" aria-required="true" aria-invalid="true">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">金额：</label>
                                <div class="col-sm-8">
                                    <input id="money" name="money" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">日期:</label>
                                <div class="col-sm-8">
                                    <input id="date" name="date" class="form-control" type="text" placeholder="请输入年-月-日">
                                </div>
                            </div>  
                            <div class="form-group">
                                <label class="col-sm-3 control-label">家庭：</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="family_id" value="${sta.id }">
									<c:forEach items="${listf }" var="f">
										<option value="${f.id }">${f.name }</option>
									</c:forEach>
								</select>
                                </div>
                            </div>   
                            <div class="form-group">
                                <label class="col-sm-3 control-label">家庭成员：</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="member_id" value="${sta.id }">
									<c:forEach items="${listf }" var="f">
										<option value="${f.id }">${f.name }</option>
									</c:forEach>
								</select>
                                </div>
                            </div>              
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">确认修改</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="${path }/static/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="${path }/static/js/content.min.js?v=1.0.0"></script>
    <script src="${path }/static/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="${path }/static/js/plugins/validate/messages_zh.min.js"></script>
    <script src="${path }/static/js/demo/form-validate-demo.min.js"></script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
	</body>
</html>